package com.studentrecipe.mapper;

import com.studentrecipe.dto.Users;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface MapperRegister {

    @Select("select * from ipd.users where username = #{username}")
    Users registerCheck(String username);

    @Insert("insert into ipd.users(username, password) values(#{username}, #{password})")
    int register(String username, String password);

}
